using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections;
using System.ComponentModel;

namespace Be.Timvw.Framework.ComponentModel
{
    public static class AssertSortableBindingList
    {
        public static void HaveSameElements(IList expected, IBindingList actual)
        {
            Assert.AreEqual(expected.Count, actual.Count);
            for (int i = 0; i < actual.Count; ++i)
            {
                Assert.IsTrue(ReferenceEquals(expected[i], actual[i]));
            }
        }
    }
}
